#include "ConnectDialog.h"
#include "ui_ConnectDialog.h"

ConnectDialog::ConnectDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::ConnectDialog)
{
    ui->setupUi(this);
}

ConnectDialog::~ConnectDialog()
{
    delete ui;
}

void ConnectDialog::changeEvent(QEvent *e)
{
    QDialog::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

QString ConnectDialog::getNickName()
{
    return ui->nickName->text();
}

QString ConnectDialog::getAltNickName()
{
    return ui->altNick->text();
}

QString ConnectDialog::getFullName()
{
    return ui->fullName->text();
}

QString ConnectDialog::getServerName()
{
    return ui->serverName->text();
}

unsigned int ConnectDialog::getPortNumber()
{
    return 6667;
}
